package com.sdry.web.controller;

import java.util.ArrayList;
import java.util.List;

import com.sdry.model.jyy.ReceiveDetailQuality;
import com.sdry.model.lz.CodeMark;

public class Test {

	public static void main(String[] args) {
		List<ReceiveDetailQuality> list = new ArrayList<ReceiveDetailQuality>();
		List<ReceiveDetailQuality> list2 = new ArrayList<ReceiveDetailQuality>();
		
		ReceiveDetailQuality receiveDetailQuality = new ReceiveDetailQuality();
		ReceiveDetailQuality receiveDetailQuality2 = new ReceiveDetailQuality();
		
		ReceiveDetailQuality receiveDetailQuality3 = new ReceiveDetailQuality();
		receiveDetailQuality3.setId(receiveDetailQuality.getId());
		ReceiveDetailQuality receiveDetailQuality4 = new ReceiveDetailQuality();
		
		CodeMark codeMark1 = new CodeMark();
		CodeMark codeMark2 = new CodeMark();
		CodeMark codeMark3 = new CodeMark();
		CodeMark codeMark4 = new CodeMark();
		
		CodeMark codeMark5 = new CodeMark();
		codeMark5 = codeMark1;
		CodeMark codeMark6 = new CodeMark();
		codeMark6 = codeMark3;
		
		receiveDetailQuality.getReceiveCode().add(codeMark1);		
		receiveDetailQuality.getReceiveCode().add(codeMark2);	
		
		receiveDetailQuality2.getReceiveCode().add(codeMark3);	
		receiveDetailQuality2.getReceiveCode().add(codeMark4);	
		
		receiveDetailQuality3.getReceiveCode().add(codeMark5);
		receiveDetailQuality4.getReceiveCode().add(codeMark6);
		
		list.add(receiveDetailQuality);
		list.add(receiveDetailQuality2);
		
		list2.add(receiveDetailQuality3);
		list2.add(receiveDetailQuality4);
		
		System.out.println(codeMark5.toString());
		System.out.println(codeMark1.toString());
		
	}
}
